/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Casting;

/**
 *
 * @author Dennis
 */
public class CastingVariables {
    public static void main(String[ ] arguments) {
        //Conversion entre variables (Implicito)
        /*
         * Destino <= Fuente
         * int    <= (int)byte
         * int    <= (int)char
         * long   <= (long)int
         * double <= (double)long         
         */ 
        double x = 56.01;
        float y = (float)(2 * x);
        System.out.println(y);

        double temp1 = 3.4 * y;
        int temp2 = (int)(temp1);
        System.out.println(temp2);
     }
}
